/**
 * 系统常用配置项
 */

// import devApi from './dev/api';
// import deployDevApi from './deploy-dev/api';
// import deployProdApi from './deploy-prod/api';
// import deployTestApi from './deploy-test/api';
//
// // var configEnv = process.env.CONFIG_DIR || 'deploy-dev';
// var __apiConfig;
//
// if (ENVIRONMENT === 'deploy-prod') {
//   __apiConfig = deployProdApi;
// } else if (ENVIRONMENT === 'deploy-test') {
//   __apiConfig = deployTestApi;
// } else if (ENVIRONMENT === 'deploy-dev') {
//   __apiConfig = deployDevApi;
// } else {
//   __apiConfig = devApi;
// }

const DEFAULT_URL = "http://localhost:8081/";
const SECURITY_URL = "http://localhost:9001/";
const LOGIN_URL = '/login';
const config = {

    author: 'shenyuhang',

    projectName: 'spring-boot-vue-demo',

    uiTemplate: 'elementUI',

    i18n: 'zh',

    loginUrl: LOGIN_URL,

    axiosConfig: {
        // ###################   api地址   #################
        default: {
            baseURL: DEFAULT_URL,
            timeout: 60000,
            skipToken: true,
            headers: {
                'deptCode': '12300',
                'langType': 'zh',
                // 'operator': '1',
                'orgCode': '2',
                'apiKey': 'default-key'
            }
        },
        security: {
            baseURL : SECURITY_URL,
            timeout: 60000,
            skipToken: true
        },
        monitor: {
            baseURL: 'http://localhost:8087/',
            timeout: 100000,
            headers: {
                'deptCode': '12300',
                'langType': 'zh',
                'operator': '1',
                'orgCode': '2',
                'apiKey': 'default-key'
            }
        }
    }
};

export default config;
